package lanqiao;

import java.util.Scanner;

public class test10_1 {
    //1371 回文判断
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        boolean flag = checkpalindrome(str);
        if (flag) {
            System.out.println("Y");
        } else {
            System.out.println("N");
        }
    }

    private static boolean checkpalindrome(String str) {
        int left = 0, right = str.length() - 1;
        while (left <= right && str.charAt(left) == str.charAt(right)) {
            left++;
            right--;
        }
        if (left > right) {
            return true;
        } else {
            return false;
        }
    }

}
